#include <stdio.h>

//declare a function
int Prime(int m);
//如果m是质数则返回1，否则返回0

void main()
{
	int a, b;
	for (int i = 800; i <= 1000; i++)
	{
		if (Prime(i))
		{
			a = i;
			break;
		}
	}
	for (int i = a + 1; i <= 1000; i++)
	{
		if (Prime(i))
		{
			b = i;
			break;
		}
	}
	long long int n;
	n = a * b;
	printf("The output is %lld", n);
}

//如果m是质数则返回1，否则返回0
int Prime(int m)
{
	int isPrime = 1;
	for (int i = 2; i <= m - 1; i++)
	{
		if ( m % i == 0)
		{
			isPrime = 0;
			break;
		}
	}
	return isPrime;
}


